const commodity = [
  {
    name: "commodity",
    path: "/commodity",
    hidden: false,
    redirect: "noRedirect",
    component: "Layout",
    alwaysShow: true,
    permissions: "commodity:sku",
    meta: {
      title: "商品管理",
      noCache: false,
      link: null,
    },
    children: [
      {
        // 组件的name（前端vue文件中组件的name）与路由中的name必须一至 才能被缓存
        name: "goodsIndex",
        path: "goodsIndex",
        hidden: false,
        component: "commodity/commodityManagement/goodsIndex",
        permissions: "commodity:sku:list",
        meta: {
          title: "商品管理",
          noCache: false,
          link: null,
        },
      },
      {
        name: "categoryIndex",
        path: "categoryIndex",
        hidden: false,
        component: "commodity/commodityCategory/categoryIndex",
        permissions: "commodity:classify:list",
        meta: {
          title: "分类管理",
          noCache: false,
          link: null,
        },
      },
      {
        name: "attrIndex",
        path: "attrIndex",
        hidden: false,
        component: "commodity/commodityAttribute/attrIndex",
        permissions: "commodity:attr:list",
        meta: {
          title: "属性管理",
          noCache: false,
          link: null,
        },
      },
      {
        name: "warningIndex",
        path: "warningIndex",
        hidden: false,
        component: "commodity/commodityInventoryWarning/warningIndex",
        permissions: "commodity:warn:list",
        meta: {
          title: "商品库存预警",
          noCache: false,
          link: null,
        },
      },
    ],
  },
];
export default commodity;
